package com.fowo.api.model.sourcing.manage;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.common.validator.EnumsString;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 寻源管理 导入导出辅助模型 */
@Getter
@Setter
public class SourcingManageExcelPo {

  @NotNull(message = "开发任务编号不能为空")
  @Size(max = 50, message = "开发任务编号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*开发任务编号")
  private String taskIdTaskId;

  @ExcelIgnore
  @ExcelProperty(value = "*开发任务编号")
  private Long taskId;

  @NotNull(message = "寻源时间不能为空")
  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "*寻源时间")
  private java.util.Date sourcingTime;

  @NotBlank(message = "经销商分类不能为空")
  @Size(max = 50, message = "经销商分类长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*经销商分类")
  private String dealerClassification;

  @NotBlank(message = "状态不能为空")
  @EnumsString(
    value = { "接收", "未完成", "完成", "已失效" },
    message = "状态的可用值为 “接收”, “未完成”, “完成”, “已失效” 其中之一"
  )
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*状态")
  private String state;

  @NotNull(message = "工牌胸卡不能为空")
  @ExcelProperty(value = "*工牌胸卡")
  private Long workBadge;

  @NotBlank(message = "经销商行业不能为空")
  @Size(max = 50, message = "经销商行业长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*经销商行业")
  private String dealerIndustry;

  @NotNull(message = "编号不能为空")
  @ExcelProperty(value = "*编号")
  private Long enterpriseId;

  @NotBlank(message = "企业简称不能为空")
  @Size(max = 50, message = "企业简称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*企业简称")
  private String enterpriseAbbreviation;

  @NotBlank(message = "企业名称不能为空")
  @Size(max = 50, message = "企业名称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*企业名称")
  private String enterpriseName;

  @NotNull(message = "社会信用代码不能为空")
  @ExcelProperty(value = "*社会信用代码")
  private Long socialCreditCode;

  @NotNull(message = "注册资本不能为空")
  @ExcelProperty(value = "*注册资本")
  private Long registeredCapital;

  @NotBlank(message = "经营范围不能为空")
  @Size(max = 50, message = "经营范围长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*经营范围")
  private String businessScope;

  @NotBlank(message = "地点不能为空")
  @Size(max = 50, message = "地点长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*地点")
  private String address;

  @NotNull(message = "是否源头工厂不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*是否源头工厂")
  private String ifSourceFactory;

  @Size(max = 50, message = "设计人员长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "设计人员")
  private String designers;

  @Size(max = 50, message = "打版师长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "打版师")
  private String typesetter;

  @Size(max = 50, message = "排产人员长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "排产人员")
  private String productionSchedulingPersonnel;

  @Size(max = 50, message = "生产人员长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "生产人员")
  private String productionPersonnel;

  @Size(max = 50, message = "财务行政人员长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "财务行政人员")
  private String financialAdministrativePersonnel;

  @Size(max = 50, message = "加工制造能力长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "加工制造能力")
  private String processManufacturingCapacity;

  @NotBlank(message = "固定资产不能为空")
  @Size(max = 50, message = "固定资产长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*固定资产")
  private String fixedAssets;

  @NotBlank(message = "流动资金不能为空")
  @Size(max = 50, message = "流动资金长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*流动资金")
  private String currentAssets;

  @NotBlank(message = "应收应付账款不能为空")
  @Size(max = 50, message = "应收应付账款长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*应收应付账款")
  private String receivablePayableAccounts;

  @NotBlank(message = "库存情况不能为空")
  @Size(max = 50, message = "库存情况长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*库存情况")
  private String inventoryStatus;

  @NotBlank(message = "企业不能为空")
  @Size(max = 50, message = "企业长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*企业")
  private String enterprise;

  @NotBlank(message = "法人不能为空")
  @Size(max = 50, message = "法人长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*法人")
  private String legalPerson;

  @NotNull(message = "知识产权不能为空")
  @ExcelProperty(value = "*知识产权", converter = ImageConvert.class)
  private List<SysFile> intellectualProperty;

  @NotNull(message = "老板身份证复印件不能为空")
  @ExcelProperty(value = "*老板身份证复印件", converter = ImageConvert.class)
  private List<SysFile> bossIDCopyCard;

  @NotNull(message = "质量体系认证不能为空")
  @ExcelProperty(value = "*质量体系认证", converter = ImageConvert.class)
  private List<SysFile> qualitySystemCertification;

  @ExcelProperty(value = "设备", converter = ImageConvert.class)
  private List<SysFile> device;

  @ExcelProperty(value = "厂房", converter = ImageConvert.class)
  private List<SysFile> workShop;

  @Size(max = 50, message = "现场图片长度不能超过20")
  @ExcelProperty(value = "现场图片", converter = ImageConvert.class)
  private List<SysFile> livePictures;

  @NotNull(message = "行业强制认证不能为空")
  @ExcelProperty(value = "*行业强制认证", converter = ImageConvert.class)
  private List<SysFile> industryMandatoryCertification;

  @NotNull(message = "营业执照不能为空")
  @ExcelProperty(value = "*营业执照", converter = ImageConvert.class)
  private List<SysFile> businessLicense;

  @ExcelProperty(value = "巡场拍照", converter = ImageConvert.class)
  private List<SysFile> patrolPhotography;

  @NotNull(message = "合同模版不能为空")
  @ExcelProperty(value = "*合同模版", converter = ImageConvert.class)
  private List<SysFile> contractTemplate;
}
